package org.steven.crm.core.data;

import org.steven.crm.core.service.BaseService;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 关联查询配置类
 * @Author wuzw
 * @Date 2024/1/5 10:21
 * @Version 1.0
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CascadeQueryConfig {
    private String value;
    private TableRelation tableRelation;

    private String srcColumn;

    private BaseService middleService;
    private String middleTableSrcColumn;
    private String middleTableTargetColumn;

    private BaseService targetService;
    private String targetColumn;
    private String[] targetTableFields;

    private String group;
}
